﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShareCode.Dto
{
    public class ResultDto<T> : IResultDto
    {
        public bool Success => Code == 200;
        public int Code { get; set; } = 200;
        public string? Message { get; set; }
        //error display type： 0 silent; 1 message.warn; 2 message.error; 4 notification; 9 page
        //public int ShowType { get; set; }
        public T? Data { get; set; }
        public Dictionary<string, List<string>>? DetailMSg { get; set; }
    }
}
